<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>

<h3>登录</h3>

<div th:if="${error} != null" style="color: #ff0036">
    [[${error}]]
</div>

<form th:action="@{/login}" method="post">
    <label>
        用户名
        <input type="text" name="user"/>
    </label>


    <label>
        密码
        <input type="password" name="pwd"/>
    </label>

    <button type="submit">提交</button>
</form>

</body>
</html>